package cn.kgc.bookservice.mapper;

import cn.kgc.librarycommon.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    List<BookInfo> getAllBooks(@Param("bookName") String bookName,
            @Param("authorName") String authorName,@Param("cid") Integer cid);
    List<Category> getAllCategory();
    List<Book> getEnableBook(Integer fid);
    Integer borrow(Borrow borrow);
    List<BorrowVO> getBorrowById(Integer uid);

}
